<admintpl file="header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="javascript:;">退款记录</a></li>
			<!--<li><a href="{:U('AdminRefund/add',array('id'=>empty($item['id'])?'':$item['id']))}" target="_self">充值</a></li>-->
		</ul>
        <form class="well form-search" id="form_search" method="post" action="{:U('AdminRefund/index')}">
            <if condition="$is_manager">
                <select name="s_rid">
                    <option value="">请选择物流公司</option>
                    <foreach name="logistics_list" item="litem">
                        <option value="{$litem['id']}" <if condition="$s_rid == $litem['id']">selected</if>>{$litem.logistics_name}</option>
                    </foreach>
                </select>
                <select name="s_admin_id" style="margin:0px;">
                    <option value="">请选择操作用户</option>
                    <foreach name="admin_list" item="litem">
                        <option value="{$litem['id']}" <if condition="$s_admin_id == $litem['id']">selected</if>>{:$litem['user_nicename'].($litem['logistics_name']?'['.$litem['logistics_name'].']':'[内部管理人员]')}</option>
                    </foreach>
                </select>
            </if>
            <input type="text" name="s_start_time" id="s_start_time" value="<php> echo date('Y-m-d H:i',$s_start_time);</php>" class="js-datetime" placeholder="开始时间" >
            至
            <input type="text" name="s_end_time" id="s_end_time" value="<php> echo date('Y-m-d H:i',$s_end_time);</php>" class="js-datetime" placeholder="结束时间">
            <input type="submit" class="btn btn-primary" value="搜索" />
            <input type="hidden" name="s_download" id="s_download" value="0"/>
            <a class="btn btn-primary" style="float: right;margin-right:15px;margin-bottom:10px;" href="javascript:downloadExcel(1);">导出报表</a>

        </form>
		<form class="js-ajax-form" action="" method="post">

			<table class="table table-hover table-bordered table-list">
                <thead>
                <tr>
                    <th width="50">操作用户</th>
                    <th width="50">操作电话</th>
                    <th width="50">物流公司名称</th>
                    <th width="50">退款金额</th>
                    <th width="50">退款后余额</th>
                    <th width="50">创建时间</th>
                    <!--<th width="70">{:L('ACTIONS')}</th>-->
                </tr>
                </thead>
                <foreach name="list" item="vo">
                    <tr>
                        <td>{$vo.user_nicename}</td>
                        <td>{$vo.user_phone}</td>
                        <td>{:$vo['manager_id']?'['.$vo['manager_logistics_name'].']':''}{$vo.logistics_name}</td>
                        <td>{$vo.price}</td>
                        <td>{$vo.balance}</td>
                        <td>{:date("Y-m-d H:i:s",$vo['create_time'])}</td>
                        <!--<td>-->
                        <!--<a href="{:U('AdminLogistics/add',array('id'=>$vo['id']))}">{:L('EDIT')}</a> |-->
                        <!--<a href="{:U('AdminLogistics/delete',array('id'=>$vo['id']))}" class="js-ajax-delete">{:L('DELETE')}</a>-->
                        <!--</td>-->
                    </tr>
                </foreach>

			</table>

			<div class="pagination">{$page}</div>
		</form>
	</div>
	<script src="__PUBLIC__/js/common.js?3"></script>
	<script>
		function refersh_window() {
			var refersh_time = getCookie('refersh_time');
			if (refersh_time == 1) {
				window.location = "{:U('AdminRefund/index',$formget)}";
			}
		}

	</script>
</body>
</html>